/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* 登录框 */
.login-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
}

/* 登录头部 */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: #43cea2;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #34495e;
    font-size: 0.9rem;
}

.form-group label i {
    color: #43cea2;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #43cea2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 206, 162, 0.1);
}

/* 记住我和忘记密码 */
.form-group:nth-child(3) {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.forgot-password {
    color: #43cea2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2eaf83;
}

/* 登录按钮 */
.login-button {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-button:active {
    transform: translateY(0);
}

/* 登录消息 */
.login-message {
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
    margin-bottom: 1rem;
}

.login-message.error {
    color: #e74c3c;
}

.login-message.success {
    color: #2ecc71;
}

/* 动画效果 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 登录提示样式 */
.login-tips {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(67, 206, 162, 0.1);
    border-radius: 8px;
    border: 1px dashed #43cea2;
}

.login-tips p {
    color: #2eaf83;
    font-size: 0.85rem;
    margin: 0.2rem 0;
}

/* 添加提示图标 */
.login-tips::before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: block;
    color: #43cea2;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        padding: 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.2rem;
    }
    
    .form-group:nth-child(3) {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .login-tips {
        padding: 0.6rem;
        margin-top: 0.8rem;
    }
    
    .login-tips p {
        font-size: 0.8rem;
    }
}

/* 加载动画 */
.login-button.loading {
    position: relative;
    pointer-events: none;
}

.login-button.loading span {
    opacity: 0;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
} 